// Copyright (c) 2007 Robin Boerdijk. All rights reserved.
//
// This software is licensed under the terms of the Microsoft Reciprocal License as described 
// in the file LICENSE.txt, which you should have received as part of this distribution. The 
// license terms are also available at http://www.opensource.org/licenses/ms-rl.html.

#ifndef wtk_ButtonControl_h_included
#define wtk_ButtonControl_h_included

#include "wtk/Control.h"
#include "wtk/Event.h"

#include <string>

namespace wtk
{
	class ButtonControl : public Control
	{
	public:

		ButtonControl(DialogWindow *dialogWindow);

		template<class HandlerClass> void OnClicked(HandlerClass *object, void (HandlerClass::*method)(ButtonControl *sender))
		{
			ClickedEvent.AddHandler(object, method);
		}

	private:

		Event<ButtonControl> ClickedEvent;
	};
}

#endif